﻿using UnityEngine;
using System.Collections;
namespace stickman
{
public class growup : MonoBehaviour {
	public float growspeed;
	bool isgrowup;

	// Use this for initialization
	void Start () {
		isgrowup = false;

	}
	
	// Update is called once per frame
	void Update () {
//	if (Input.GetKeyDown (KeyCode.Mouse0)) {
//			isgrowup=true;
//			Debug.Log("keydown!");
//				}
//		if(Input.GetKeyUp(KeyCode.Mouse0)){
//			Debug.Log("keyup2!");
//			isgrowup=false;
//		}
			if (playercontroller.isGreateBridge) {
			transform.localScale+=new Vector3(0,growspeed*Time.deltaTime,0);
			transform.position+=new Vector3(0,(growspeed-0.7f)*Time.deltaTime,0);
				}

	}
}
}
